﻿@using HtmlExtensions;
@{  
    
    LayoutPage = "~/_SiteLayout.cshtml";
    var repo = new MeetingRepository();
    Meeting meeting = repo.GetNextMeeting();
    var upcomingMeetings = repo.GetFutureMeetings();
}
@if(meeting!=null){
<h2>Next Meeting</h2>
<p>
    <label>Date:</label> @meeting.Date <br/>
    <label>Topic:</label><span title="@meeting.Abstract.ToHtml()"> @meeting.Topic</span><br/>                            
    Speaker:  <a href="@meeting.SpeakerUrl" title="@meeting.SpeakerBio.ToHtml()" target="_blank"> @meeting.SpeakerName</a><br/>    
    </p>
}
<h2>Sidebar</h2>
<h3>Future Meetings</h3>
<ul>
@foreach(var m in upcomingMeetings){
    <li>@m.Date @m.Topic </li>
}
</ul>

<ul>
<li>Join our <a href="http://www.linkedin.com/groups?mostPopular=&gid=114429" target="_blank">Linked In Group</a></li>
<li><h3>Local Community Events</h3> 
<ul>
@foreach(var item in YahooPipesDownloader.GetPipe("zsXTK2mw3RGQEhBnrbQIDg")){
    <li><a href="@item.url">@item.title</a></li>
}
</ul>
</li>
<li>
<h3>Austin .Net Jobs</h3>
<ul>
@foreach(var d in Jobamatic.Get(Server.UrlEncode("c%23+OR+ASP.Net+OR+TDD"))){
<li><a href="@d.Url" title="@d.Description" target="_blank">@d.Title</a></li>
}
</ul>
</li>
<li>
<h3>Austin Bloggers</h3>
<ul>
@foreach(var item in YahooPipesDownloader.GetPipe("GkxUx2uw3RGSTDD0PhJ3AQ")){
    <li><a href="@item.url">@item.title</a></li>
}
</ul>
</li>
</ul>